﻿@model  P2PWeb.Models.Pager<P2PWeb.Models.Account>
@using P2PWeb.Controllers;
@using P2PWeb.Common
@using P2PWeb;

<table cellpadding="0" cellspacing="0" width="100%">
    <tbody>
        <tr class="total_th">
            <th class="name">用户名:</th>
            <th>姓名</th>
            <th>身份证正面</th>
            <th>身份证背面</th>
            <th>审核状态</th>
            <th class="last_th"></th>
        </tr>
        <tr class="">
            <th colspan="6">&nbsp;</th>
        </tr>

        @foreach (P2PWeb.Models.Account account in Model.Items)
        {
            <tr class="first_td">
                <td class="left_td">@account.Name</td>
                <td>@(account.AccountInfo==null?"没有填写":account.AccountInfo.AreaName)</td>
                <td>@(account.AccountAuthentication==null?"没有上传":account.AccountAuthentication.IDCardUrl)</td>
                <td>@(account.AccountAuthentication==null?"没有上传":account.AccountAuthentication.IDCardUrlNegative)</td>
                <td class="red">@(((AccountState)account.Status).GetDisplayName())</td>
                <td><a href="@("accountManager/AccountDetail?accountId=" + account.ID)">查看详情</a></td>
            </tr>
        }
    </tbody>
</table>

<div id="navDiv" class="loan_page">

    <script>
        $(document).ready(function () {
            MakerNavs('accountManager','index',@Model.CurrentPageIndex,@Model.TotialPaqgerCount,@Model.Items.Count,@Model.TotialItemsCount,'navDiv','borrowsContainer');
        });
    </script>
</div>
